package com.my;

import com.my.api.MyRpcRequest;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

//@RestController
//@RequestMapping("/invoke_1")
public class InvokeController {
    @Resource
    private MyRpcProviderResolver resolver;

    @ResponseBody
    @RequestMapping("/invoke_2")
    public String invoke(@RequestBody MyRpcRequest rpcRequest) {
        return "invoke!";
    }

}